<?php

declare(strict_types=1);
/**
 * Created by .
 * User: luogan
 * Date: 2021/12/17
 */

namespace App\Controller\Api\v1;


use App\Controller\AbstractController;
use Hyperf\Di\Annotation\Inject;
use App\Validate\Api\AdminLoginLogValidate;
use App\Service\AdminLoginLogService;

class AdminLoginLogController extends AbstractController
{

    /**
     * @Inject
     * @var AdminLoginLogValidate
     */
    private $adminLoginLogValidate;

    /**
     * @Inject
     * @var AdminLoginLogService
     */
    private $adminLoginLogService;


    public function list():string
    {
        $data = $this->parame();
        $this->adminLoginLogValidate->scene(__FUNCTION__)->validate($data);
        $result = $this->adminLoginLogService->list($data);
        return success('操作成功',$result);
    }

    public function detail():string
    {
        $data = $this->parame();
        $this->adminLoginLogValidate->scene(__FUNCTION__)->validate($data);
        $result = $this->adminLoginLogService->detail($data);
        return success('操作成功',$result);
    }

    public function create():string{}

    public function update():string{}

    public function delete():string{}

}
